home *** CD-ROM | disk | FTP | other *** search
- Path: newshub.ccs.yorku.ca!news
- From: KuMan <" yu133496"@yorku.ca>
- Newsgroups: comp.lang.c++
- Subject: extern functions questions????????
- Date: Mon, 26 Feb 1996 22:39:36 -0500
- Organization: York University, Ontario, Canada
- Message-ID: <4gtug0$j3t@sunburst.ccs.yorku.ca>
- NNTP-Posting-Host: george10.slip.yorku.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- I've this problem that I have to declare a class member function with two parameters(one
- is a char pointer, the other is an int index). O.K. the problem is that the int index is also the
- array index for that particular class.......
-
- class whatever{
- .
- .
- add(int index, char *things); // member function.
- .
- .
- }
-
- main(){
- .
- whatever x[20];
- .
- .
- x.add[index](index, "hello"); //array index(main) is the
- //same member function index(add).
- .
- .
- }
-
- what can I do to make this function work??
-
- thank you
-